package org.sippr.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * word_cue
 */
@Data
public class WordCue implements Serializable {
    private Integer id;

    @NotNull
    private Integer clsId;
    @NotEmpty

    private String chName;
    @NotEmpty

    private String enName;

    private String name;

    public String getName() {
        return chName + "," + enName;
    }

    private String createUser;

    private String updateUser;
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss")
    private LocalDateTime createTime;


    @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss")
    private LocalDateTime updateTime;

    @Serial
    private static final long serialVersionUID = 1L;
}